package edu.hitsz.prop;

import edu.hitsz.aircraft.HeroAircraft;
import edu.hitsz.application.MusicThread;
import edu.hitsz.application.ShortMusicThread;
import edu.hitsz.shoot.ShootThread;

public class PropBomb extends Prop{
    public PropBomb(int locationX, int locationY, int speedX, int speedY){
        super(locationX, locationY, speedX, speedY);
    }

    public void effect(HeroAircraft heroAircraft){
        new ShortMusicThread("src/videos/bomb_explosion.wav").start();
        System.out.println("BombSupply active!\n");
    }

    public void effect(BombEffect bombEffect){
        new ShortMusicThread("src/videos/bomb_explosion.wav").start();
        bombEffect.notifyAll(100);
        System.out.println("BombSupply active!\n");
    }
}
